package com.ruibang.glass.portal.constant;

public class Constants {

    public static final String REDIS_OPINION_USER_TOKEN = "OPINION_USER_TOKEN_";

    public static final String CHECK_LOGIN_PARAM_INFO = "CHECK_LOGIN_PARAM_INFO";

    public static final String REDIS_OPINION_DEPARTMENT_INFO = "OPINION_DEPARTMENT_INFO";

    public static final String REDIS_KEY_USERID = "REDISKEY_USERID_";

    public static final String REDIS_KEY_APP_USERID = "REDISKEY_APP_USERID_";

    public static final String ZERO_STR = "0";

    public static final String ONE_STR = "1";

    public static final String TWO_STR = "2";

    public static final String THREE_STR = "3";

    public static final String FOUR_STR = "4";

    public static final String FIVE_STR = "5";

    public static final String SIX_STR = "6";

    public static final String SYNCHRONOUS_PROGRESS = "synchronousProgress";

    public static final String USER_OPERATE_CODE = "user_operate_code_%s";

    public static final String PING_METHOD_ = "PING_METHOD_%s";

    public static final String STR_ZERO = "0";

    public static final Integer INT_ZERO = 0;

    public static final Integer INT_ONE = 1;

    public static final Integer INT_TWO = 2;

    public static final Integer INT_THREE = 3;

    public static final String STR_ONE = "1";

    public static final String STR_TWO = "2";

    public static final String STR_THREE = "3";

    public static final String STR_FOUR = "4";

    public static final String STR_FIVE = "5";

    public static final String STR_SIX = "6";


    public static int EXPIRE = 30 * 24 * 60 * 60;

    public static String T_SSO_TOKEN = "t_sso_token";

    public static final String OPERATE_CODE_SALT = "glass@2020";

    public static String T_SSO_TOKEN_USER = "t_sso_token_user_";

    public static String GRAPH_CODE_KEY = "GRAPH_CODE_";

    public static String CLIENT_ID = "CLIENT_ID_";

    public static int GRAPH_CODE_EXPIRE = 2 * 60;

    public static int NOTE_VERIFICATION_EXPIRE = 15 * 60;

    public static int APP_TOKEN_CODE_EXPIRE = 30 * 24 * 60 * 60; //App登录一个月的过期时间

    public static int PC_TOKEN_CODE_EXPIRE = 30 * 24 * 60 * 60;//Pc登录一个月的过期时间

    public static int PAD_TOKEN_CODE_EXPIRE = 60 * 60;

    public static int REDIS_USERID_EXPIRE = 24 * 60 * 60;

    public static final Integer ZERO_INT = 0;

    public static final Integer ONE_INT = 1;

    /**
     * 用户的匹配得分，推荐阈值80分
     */
    public static final Double FACE_MATCH_SCORE = 80.0;

    /**
     * 匿名ip
     */
    public static final String ANONYMOUS_IP = "0:0:0:0:0:0:0:1";

    public static Long USER = 3L;

    public static String DEFAULT_DEPT_ID = "0";

    public static final String PASSWORD_PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCseYNDiwTfSgPCeS3fhB00PybXUPyvauN2OuHnqJT1vyCpaSp1eRaK43rsvUqN3m8QjNr0xatTzemwkjxvGuCzCzkPAct6h6eMwJTdSsVbcom8mWbY21wZsnxx/pgZ/sAObqzGqj/3zA/2bxK15xYlmthnOlsJ8tKLVKv10wLsawIDAQAB";

    public static final String PASSWORD_PRIVATE_KEY = "MIICeQIBADANBgkqhkiG9w0BAQEFAASCAmMwggJfAgEAAoGBAKx5g0OLBN9KA8J5Ld+EHTQ/JtdQ/K9q43Y64eeolPW/IKlpKnV5Forjeuy9So3ebxCM2vTFq1PN6bCSPG8a4LMLOQ8By3qHp4zAlN1KxVtyibyZZtjbXBmyfHH+mBn+wA5urMaqP/fMD/ZvErXnFiWa2Gc6Wwny0otUq/XTAuxrAgMBAAECgYEAgQfDCNPHCFkx6NqJVA9dXcnk/+5Jq942Xyv79zgqgJLFF5hiuFGnaK54NwYB8ZK32lTWNYpv+xkwO/WbGq+r62iRGnHc/F412HSHannIyvOBoy1IlJxyFwOg4pcxxU+gkiVW2WuKzgczdaMs0MxXMCBmbXzpURqdR+m7BvE7WRECQQDz7PL4fP95swxJgOWn+VuSnKn/6sv2eDi7LuqdrfsPKGJ8pjiaXuIjF3QLIzWFIUfhiPETOm5juwFpcEXnbMwpAkEAtQMhRLP1Fom3KvS078z42bGg8Mb2W8BsTka2uHhlaDUZGWfKAcJn6af3AcwHBqu864Lh6QptVDv8kKm+3NBGcwJBAPLFkzGj3vV2MbV6d5hOA0kRadVPED83emc6k8Hp5iU48YTUPyPNac65SgLHwT3GWO9sx1t23WWfOxGA7+Ick7kCQQCf2Ci7s7KdeXVfoIJbNIUYMCywEvKgaVb69KUMV30tPZ5xed7AGP2ML0AHvTUDJgsJaiW2lfefp+1Ljio2clGTAkEAtf+bLPhbRc0HCzZpubuphf3Na6TZW3alvXl57JJ7SefdpBnirgcACVPAOmzlvpW8LGlk0zYUlaBh40svquwW2Q==";

    public static final String NOTE_VERIFICATION_CODE = "NOTE_VERIFICATION_CODE_";

    public static final String SMART = "SMART_";

    /**
     * 部门状态
     * <p>
     * 2018年9月30日
     */
    public enum DeptStatusEnum {
        NORMAL(1),
        DEL(2);

        private Integer val;

        DeptStatusEnum(Integer val) {
            this.val = val;
        }

        public Integer getVal() {
            return val;
        }
    }

    /**
     * 菜单类型
     * <p>
     * 2018年9月30日
     */
    public enum MenuTypeEnum {
        MENU(1),
        BUTTON(2);

        private Integer val;

        MenuTypeEnum(Integer val) {
            this.val = val;
        }

        public Integer getVal() {
            return val;
        }
    }

    /**
     * 菜单状态
     * <p>
     * 2018年9月30日
     */
    public enum MenuStatusEnum {
        DISABLE(1),
        UNDISABLE(2);

        private Integer val;

        MenuStatusEnum(Integer val) {
            this.val = val;
        }

        public Integer getVal() {
            return val;
        }
    }

    /**
     * 第三方类型
     * <p>
     * 2018年9月30日
     */
    public enum ThirdTypeEnum {
        TW(2);

        private Integer val;

        ThirdTypeEnum(Integer val) {
            this.val = val;
        }

        public Integer getVal() {
            return val;
        }
    }

    /**
     * 第三方账号状态
     * <p>
     * 2018年9月30日
     */
    public enum ThirdStatusEnum {
        DISABLE(1),
        UNDISABLE(2);

        private Integer val;

        ThirdStatusEnum(Integer val) {
            this.val = val;
        }

        public Integer getVal() {
            return val;
        }
    }

    /**
     * 用户状态
     * <p>
     * 2018年9月30日
     */
    public enum UserStatusEnum {
        NORMAL(1),
        DISABLE(2),
        DEL(3);

        private Integer val;

        UserStatusEnum(Integer val) {
            this.val = val;
        }

        public Integer getVal() {
            return val;
        }
    }

    /**
     * 用户系统类型
     * <p>
     * 2018年9月30日
     */
    public enum UserSystemEnum {
        SYS(0),
        TW(2),
        ZT(3);

        private Integer val;

        UserSystemEnum(Integer val) {
            this.val = val;
        }

        public Integer getVal() {
            return val;
        }
    }


}
